<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>天众供应链云仓储管理系统</title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var productordergoodsEditUrl="{:U('Product/productordergoodsMSave')}";//更新数据
	var getproductordergoodsUrl="{:U('Product/get_productorderInfo')}";
	var productordergoodsDelUrl="{:U('Product/productordergoodsDel')}";

	var productordergoodsClearUrl="{:U('Product/productordergoodsClear')}";
	var productordergoodsUndoUrl="{:U('Product/productordergoodsUndo')}";
	var productordergoodsInfoUrl="{:U('Product/productordergoodsInfo')}";
	
	var productaddgoodsUrl="{:U('Product/productaddgoods')}";//添加商品
	var productaddgoodsFUrl="{:U('Product/productaddgoodsF')}";//添加辅料
	var plan_id="{:I('id')}";//订单对应id
	<!-- using('../../../default/js/changelistorderInfo.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/changelistorderInfo.js"></script>

	<table id="productordergoodsDatagrid" toolbar="#productordergoods_tb"></table>
	<table id="productordergoodsFDatagrid" toolbar="#productordergoodsF_tb"></table>
	<!-- 商品列表 -->
	<div id="productordergoodsAddDialog" class="easyui-dialog datagrid-pager-form" title="商品列表" style="width:800px;height:500px;"
        closed="true" buttons="#indexgoodsAddButtons"  modal="true">
		
		<table id="product_goodsDatagrid" toolbar="#product_indexgoods_tb"></table>
		
		<!-- 商品列表搜索栏 -->
		<div id="product_indexgoods_tb">
			<form id="product_indexgoodsSearchForm" method="post" novalidate>
				 <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="product_indexgoodsObj.showAll()">全部</a>   
				商品编码:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;"> 
				商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;"> 
				条形码:<input class="easyui-textbox" name="bar_code" style="width:150px;height:30px;">
				<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
			</form>
		</div>
    </div>
    <!-- /商品列表 -->
	<!-- 编辑领料 -->
    <div id="productordergoodsEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#productordergoodsEditButtons"  modal="true">
        <form id="productordergoodsEditForm" method="post" novalidate>
			<div class="fitem">
                <label>重量(kg)</label>
				<input name="id"  type="hidden" />
                <input name="weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="productordergoodsEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="productordergoodsObj.save('{:U('Product/productordergoodsSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#productordergoodsEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑领料 -->
	<!-- 编辑损耗/边角料 -->
    <div id="productordergoodsMEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#productordergoodsMEditButtons"  modal="true">
        <form id="productordergoodsMEditForm" method="post" novalidate>
			<div class="fitem">
                <label>损耗重量(kg)</label>
				<input name="id"  type="hidden" />
                <input name="material_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>边角料重量(kg)</label>
				<input name="id"  type="hidden" />
                <input name="scrap_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="productordergoodsMEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="productordergoodsObj.saveM('{:U('Product/productordergoodsMSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#productordergoodsMEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
	<!-- 编辑损耗/边角料 -->
	<!-- 编辑辅料 -->
    <div id="productordergoodsFEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#productordergoodsFEditButtons"  modal="true">
        <form id="productordergoodsFEditForm" method="post" novalidate>
			<div class="fitem">
                <label>重量(kg)</label>
				<input name="id"  type="hidden" />
                <input name="weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="productordergoodsFEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="productordergoodsFObj.save('{:U('Product/productordergoodsFSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#productordergoodsFEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑辅料 -->
    <!-- 搜索栏 -->
    <div id="productordergoods_tb">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="productordergoodsObj.showAll()">全部</a>
		<a href="javascript:void(0)" onclick="productordergoodsObj.editMBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改损耗/边角料</a>
		<a href="javascript:void(0)" onclick="productordergoodsObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="productordergoodsObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
    </div>
    <!-- /搜索栏 -->
	 <!-- 搜索栏 -->
    <div id="productordergoodsF_tb">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="productordergoodsFObj.showAll()">全部</a>
		<a href="javascript:void(0)" onclick="productordergoodsFObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<!-- <a href="javascript:void(0)" onclick="productordergoodsFObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a> -->
    </div>
    <!-- /搜索栏 -->
</body>